{% extends 'base.html' %}
{% load static %}
{% block title %}无权限访问{% endblock %}
{% block content %}
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3"></div>
            <div class="col-md-5">
                <div style="text-align: center;margin-top: 150px;">
                    <img width='30%' height="30%" src="{% static 'images/deny.png' %}"/>
                    <br/><br/>
                    <p style="font-size: 30px;">Oops~您没有访问这个模块的权限 ￣へ￣</p>
                    <br><br>
                    <a href="{% url 'index' %}">回到首页</a>
                </div>
            </div>
            <div class="col-sm-3"></div>
        </div>
    </div>
{% if status == 0 %}
 <script>
     layui.use('layer',function () {
        var layer=layui.layer;
        info = '{{ info }}';
        layer.alert(info,{
            icon: 3,
            skin: 'layer-ext-moon',
            btnAlign: 'c',
            yes: function () {
                {% if url %}
                window.location.href = {{ url }};
                {% else %}
                parent.layer.closeAll();
                {% endif %}
            },
        })
    })
 </script>
{% endif %}
</section>
{% endblock %}